#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "openglpainter.h"
#include "defaultpainter.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    DefaultPainter defaultPainter;

    OpenGLPainter painter;

    ui->label->setPixmap(QPixmap::fromImage(painter.Paint()));
}

MainWindow::~MainWindow()
{
    delete ui;
}
